//
//  AppDelegate.m
//  Codex
//
//  Created by ChenJie on 23/01/2018.
//  Copyright © 2018 Mist. All rights reserved.
//

#import "AppDelegate.h"
#import "CXRootViewController.h"

@interface AppDelegate ()

@end

@implementation AppDelegate

#pragma mark - Public Methods

#pragma mark - Application Lifecycle Methods

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    self.window.rootViewController = [CXRootViewController new];
    [self.window makeKeyAndVisible];
    return YES;
}

- (void)applicationWillResignActive:(UIApplication *)application {
}

- (void)applicationDidEnterBackground:(UIApplication *)application {
}

- (void)applicationWillEnterForeground:(UIApplication *)application {
}

- (void)applicationDidBecomeActive:(UIApplication *)application {
}

- (void)applicationWillTerminate:(UIApplication *)application {
}

#pragma mark - Getter Methods

- (UIWindow *)window {
    if (!_window) {
        _window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
        _window.backgroundColor = [UIColor whiteColor];
    }
    return _window;
}

@end
